package day0803;

public class htmlPrc {
    public static void main(String[] args) {
        method();
    }

    private static void method() {
        String html="http://127.0.0.1:8848/cgb2106/test04.html?user=1&age=123&sex=1&like=ppq&like=ps&edu=2";
//        String[] s1 = html.split("\\?");
        String[] s2 = html.split("\\?")[1].split("&");
        for (int i = 0; i < s2.length; i++) {
            String[] s3 = s2[i].split("=");
//            for (int j = 1; j < s3.length; j+=2) {
//                System.out.println(s3[j]);
//            }
            System.out.println(s3[1]);
        }
    }
}
